﻿package  
{
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.text.TextField;
    
    /**
     * ...
     * @author AsH
     */
    public class Menu extends Sprite
    {
        // PUBLIC PROPERTIES
        public function get data():XML {
            return _data;
        }
        
        public function set data( v:XML ):void {
            _console_out.text = _data = v;
        }
        
        
        protected   var
     // PROPERTIES
        
        _data            :XML,
        _console_out     :TextField = new TextField();
        
        
     // CONSTRUCTOR
        public function Menu() 
        {
            addEventListener(Event.ADDED_TO_STAGE, onAdded );
        }
        
        protected function onAdded( e:Event ):void
        {
            _console_out.width = stage.stageWidth;
            _console_out.height = stage.stageHeight;
            
            addChild( _console_out );
        }
        
    }
}